#include "EntityDecor.h"
#include "ComponentManager.h"

CEntityDecor::CEntityDecor(int indexGfx, const CVector2i& startPosition):CWorldEntity(indexGfx, startPosition, true)
{
	m_rectangleCollision.setTop(0);
	m_rectangleCollision.setBottom(CM.VISU().getTextureHeight(indexGfx));
	m_rectangleCollision.setLeft(0);
	m_rectangleCollision.setRight(CM.VISU().getTextureWidth(indexGfx)-15);

	m_side = eSideNeutral;
}

CEntityDecor::~CEntityDecor()
{}

void CEntityDecor::doUpdate()
{
#ifdef _DEBUG
	CM.PROFILER().startCount("EntityDecor Update");
#endif

	//do something

#ifdef _DEBUG
	CM.PROFILER().endCount("EntityDecor Update");
#endif
}

void CEntityDecor::doRender()
{
	CM.VISU().displayTexture(m_indexGfx, m_position);
}
